﻿@model IEnumerable<Kooboo.CMS.Content.Models.TextContent>
@{
    Layout = "~/Areas/" + Kooboo.CMS.FoodOrdering.Areas.FoodOrdering.FoodOrderingAreaRegistration.ModuleName + "/Views/Shared/Front.cshtml";
}
<div class="table-container">
    <table>
        <thead>
            <tr>
                <th>
                    @("Date".Label())
                </th>
                <th>
                    @("Meal".Label())
                </th>
                <th>
                    @("Restaurant".Label())
                </th>
                <th>
                    @("Food".Label())
                </th>
                <th>
                    @("Price".Label())
                </th>
                @* <th>
                    @("Remove".Label())
                </th>*@
            </tr>
        </thead>
        <tbody>
            @foreach (var order in Model)
            {

                <tr>
                    <td>
                        @order["OrderTime"]
                    </td>
                    <td>
                        @if (order["Meal"].ToString() == "1")
                        { <text>@("Lunch".Label())</text>;
                        }
                        else if (order["Meal"].ToString() == "2")
                        { <text>@("Supper".Label())</text>;
                        }
                    </td>
                    <td>
                        @order["Restaurant"]
                    </td>
                    <td>
                        @order["Food"]
                    </td>
                    <td>
                        ￥@order["Price"]
                    </td>
                </tr>
            }
        </tbody>
    </table>
</div>
@section sidebar{
    @Html.ModuleHtml().Partial("UserMonth")
}
